﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="TXManage.aspx.cs" Inherits="Manageweb_TiXian_TXManage" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>提现申请管理</title>
    <link href="../images/css.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">dateFormat='yyyy-mm-dd'</script>
    <script src="../../js/popcalendar.js" type="text/javascript"></script>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table border="1" cellpadding="0" cellspacing="0" width="750px">
            <tr  id="trShenHe" runat="server" visible="false">
                <td  style="padding-top:10px">
                   <%-- <table width="300" cellpadding="0" cellspacing="0" style="margin:0 auto">
                        <tr>
                            <td colspan="3" style="text-align: center; padding-bottom: 5px;">
                                提现申请审批
                            </td>
                        </tr>
                        <tr>
                            <td style="width: 80px">
                                账号:
                            </td>
                            <td style="padding-left: 5px; padding-bottom: 5px; width: 120px">
                                <asp:TextBox ID="txtAccount" runat="server" ReadOnly="True" Width="120px"></asp:TextBox>
                            </td>
                            <td>
                            </td>
                        </tr>
                        <tr>
                            <td style="width: 80px">
                                会员昵称:</td>
                            <td style="padding-left: 5px; padding-bottom: 5px; width: 120px">
                                <asp:TextBox ID="txtUserName" runat="server" Width="120px"></asp:TextBox>
                            </td>
                            <td>
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td>
                                提现金额:
                            </td>
                            <td style="padding-left: 5px;width: 120px;">
                                <asp:TextBox ID="txtMoney" runat="server" Width="120px"></asp:TextBox>
                            </td>
                            <td>
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td colspan="3">
                            <div style="padding-top:8px" >
                               
                                <asp:Button ID="btnPass" runat="server" Text="批准" onclick="btnPass_Click" />
&nbsp;&nbsp;&nbsp;
                                <asp:Button ID="btnReject" runat="server" CausesValidation="False" Text="驳回" 
                                    onclick="btnReject_Click" />
                               
                                <span lang="zh-cn">&nbsp; </span>
                                <asp:Button ID="btnShowQuery" runat="server" onclick="btnShowQuery_Click" 
                                    Text="查询" />
                               
                            </div>
                            </td>
                        </tr>
                        <tr>
                            <td>
                            </td>
                            <td style="padding-left: 5px; padding-top: 5px;">
                                <asp:HiddenField ID="hidTXID" runat="server" />
                            </td>
                            <td>
                            </td>
                        </tr>
                        <tr  runat="server" visible="false">
                            <td colspan="3">
                                <span id="msg" runat="server"></span>
                            </td>
                        </tr>
                    </table>--%>
                    
                    <table cellpadding="0" cellspacing="0" >
            <tr style="width: 80px">
                <td style="width: 80px">
                    会员帐号:</td>
                <td style="padding-left: 5px; padding-bottom: 5px; width: 180px">
                    <asp:TextBox ID="txtMemID" runat="server" ReadOnly="True" Width="100%"></asp:TextBox></td>
            </tr>
            <tr style="width: 80px">
                <td style="width: 80px">
                    用户名:</td>
                <td style="padding-left: 5px; padding-bottom: 5px; width: 180px">
                    <asp:Label ID="lblUserName" runat="server"></asp:Label>
                </td>
            </tr>
            <tr style="width: 80px">
                <td style="width: 80px">
                    银行名称:</td>
                <td style="padding-left: 5px; padding-bottom: 5px; width: 180px">
                    <asp:DropDownList ID="DDLBank" runat="server" Width="100%" Enabled="False">
                        <asp:ListItem>中国人民银行</asp:ListItem>
                        <asp:ListItem>中国工商银行</asp:ListItem>
                        <asp:ListItem>中国农业银行</asp:ListItem>
                        <asp:ListItem>中国建设银行</asp:ListItem>
                        <asp:ListItem>中国银行</asp:ListItem>
                        <asp:ListItem>中国光大银行</asp:ListItem>
                        <asp:ListItem>中国民生银行</asp:ListItem>
                        <asp:ListItem>上海交通银行</asp:ListItem>
                        <asp:ListItem>招商银行</asp:ListItem>
                        <asp:ListItem>中信银行</asp:ListItem>
                        <asp:ListItem>华夏银行</asp:ListItem>
                        <asp:ListItem>兴业银行</asp:ListItem>
                        <asp:ListItem>上海浦东发展银行</asp:ListItem>
                        <asp:ListItem>深圳发展银行</asp:ListItem>
                        <asp:ListItem>浙商银行</asp:ListItem>
                        <asp:ListItem>恒丰银行</asp:ListItem>
                        <asp:ListItem>广东发展银行</asp:ListItem>
                    </asp:DropDownList></td>
            </tr>
            <tr style="width: 80px">
                <td style="width: 80px">
                    省 &nbsp;&nbsp; 份:</td>
                <td style="padding-left: 5px; padding-bottom: 5px; width: 180px">
                    <asp:DropDownList ID="ddl_area" runat="server" Width="100%" Enabled="False">
                        <asp:ListItem Value="北京市">北京市</asp:ListItem>
                        <asp:ListItem Value="上海市">上海市</asp:ListItem>
                        <asp:ListItem Value="天津市">天津市</asp:ListItem>
                        <asp:ListItem Value="重庆市">重庆市</asp:ListItem>
                        <asp:ListItem Value="河北省">河北省</asp:ListItem>
                        <asp:ListItem Value="山西省">山西省</asp:ListItem>
                        <asp:ListItem Value="内蒙古自治区">内蒙古自治区</asp:ListItem>
                        <asp:ListItem Value="辽宁省">辽宁省</asp:ListItem>
                        <asp:ListItem Value="吉林省">吉林省</asp:ListItem>
                        <asp:ListItem Value="黑龙江省">黑龙江省</asp:ListItem>
                        <asp:ListItem Value="江西省">江西省</asp:ListItem>
                        <asp:ListItem Value="浙江省">浙江省</asp:ListItem>
                        <asp:ListItem Value="江苏省">江苏省</asp:ListItem>
                        <asp:ListItem Value="安徽省">安徽省</asp:ListItem>
                        <asp:ListItem Value="福建省">福建省</asp:ListItem>
                        <asp:ListItem Value="山东省">山东省</asp:ListItem>
                        <asp:ListItem Value="河南省">河南省</asp:ListItem>
                        <asp:ListItem Value="湖北省">湖北省</asp:ListItem>
                        <asp:ListItem Value="湖南省">湖南省</asp:ListItem>
                        <asp:ListItem Value="广东省">广东省</asp:ListItem>
                        <asp:ListItem Value="广西自治区">广西自治区</asp:ListItem>
                        <asp:ListItem Value="海南省">海南省</asp:ListItem>
                        <asp:ListItem Value="四川省">四川省</asp:ListItem>
                        <asp:ListItem Value="贵州省">贵州省</asp:ListItem>
                        <asp:ListItem Value="云南省">云南省</asp:ListItem>
                        <asp:ListItem Value="西藏自治区">西藏自治区</asp:ListItem>
                        <asp:ListItem Value="陕西省">陕西省</asp:ListItem>
                        <asp:ListItem Value="甘肃省">甘肃省</asp:ListItem>
                        <asp:ListItem Value="宁夏自治区">宁夏自治区</asp:ListItem>
                        <asp:ListItem Value="新疆自治区">新疆自治区</asp:ListItem>
                        <asp:ListItem Value="香港">香港</asp:ListItem>
                        <asp:ListItem Value="澳门特别行政区">澳门特别行政区</asp:ListItem>
                        <asp:ListItem Value="中国台湾">中国台湾</asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td style="width: 80px">
                    分 &nbsp;&nbsp; 行:</td>
                <td style="padding-left: 5px; padding-bottom: 5px; width: 180px">
                    <asp:TextBox ID="txtBankfen" runat="server" Width="180px" ReadOnly="True"></asp:TextBox></td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td style="width: 80px">
                    银行帐号:</td>
                <td style="padding-left: 5px; padding-bottom: 5px; width: 180px">
                    <asp:TextBox ID="txtBackCode" runat="server" Width="180px" ReadOnly="True"></asp:TextBox></td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td style="width: 80px">
                    户主姓名:</td>
                <td style="padding-left: 5px; padding-bottom: 5px; width: 180px">
                    <asp:TextBox ID="txtUserBankName" runat="server" Width="180px" ReadOnly="True"></asp:TextBox></td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td style="width: 80px">
                    毛 &nbsp;&nbsp; 额:</td>
                <td style="padding-left: 5px; padding-bottom: 5px; width: 180px">
                    <asp:TextBox ID="txtMaoMoney" runat="server" Width="180px" onpropertychange="jisuan()">0</asp:TextBox></td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td style="width: 80px">
                    手 续 费:</td>
                <td style="padding-left: 5px; padding-bottom: 5px; width: 180px">
                    <asp:TextBox ID="txtFei" runat="server"  Width="180px" ReadOnly="True"></asp:TextBox></td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td>
                    净 &nbsp;&nbsp; 额:
                </td>
                <td style="padding-left: 5px;">
                    <asp:TextBox ID="txtJingE" runat="server" Width="100%" ReadOnly="True"></asp:TextBox>
                </td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr>
                <td style="width: 80px">
                    备 &nbsp;&nbsp; 注:</td>
                <td style="padding-left: 5px; padding-bottom: 5px; width: 180px">
                    <asp:TextBox ID="txtMemo" runat="server" Width="180px" Height="106px" 
                        ReadOnly="True"></asp:TextBox></td>
            </tr>
            <tr>
                <td style="width: 80px">
                    账户金额:</td>
                <td style="padding-left: 5px; padding-bottom: 5px; width: 180px">
                    <asp:Label ID="lblAccountMoney" runat="server" Text=""> </asp:Label>
                </td>
                <td>
                    &nbsp;</td>
            </tr>
            <tr id="shenqing" runat="server">
                <td style="height: 40px">
                </td>
                <td style="padding-left: 5px; padding-top: 5px; height: 40px; text-align: center;">
                      <div style="padding-top:8px" >
                               
                                <asp:Button ID="btnPass" runat="server" Text="批准" onclick="btnPass_Click" />
                                &nbsp;
                                <asp:Button ID="btnReject" runat="server" CausesValidation="False" Text="驳回" 
                                    onclick="btnReject_Click" />
                               
                                <span lang="zh-cn">&nbsp; </span>
                                <asp:Button ID="btnShowQuery" runat="server" onclick="btnShowQuery_Click" 
                                    Text="查询" />
                               
                            </div>
                     </td>
                <td style="height: 40px">
                    </td>
            </tr>
            <tr id="shenhe" runat="server">
                <td colspan="3">
                    <asp:Label ID="Label1" runat="server" Text=""></asp:Label>
                     <span id="msg" runat="server"></span>
                </td>
            </tr>
        </table>
                </td>
            </tr>
            <tr>
                <td style="padding-top: 10px">
                    <table runat="server" id="TABLE_Query" border="1" cellpadding="0" cellspacing="0" 
            width="750px" style="margin: 0 auto">
            <tr>
                <td colspan="2" style="font-weight: bold; color: white; background-color: #507cd1;
                    text-align: left">
                                        查看会员<span lang="zh-cn">提现申请</span>
                </td>
            </tr>
            <tr>
                <td style="width: 150px">
                    &nbsp;<span lang="zh-cn">会员</span>账号:
                </td>
                <td style="text-align: left">
                    <asp:TextBox ID="txtUserAccount" runat="server" Width="240px" Height="18px"></asp:TextBox>
                    
                </td>
            </tr>
            <tr>
                <td>
                    <span lang="zh-cn">&nbsp;开始日期:</span>
                </td>
                <td style="text-align: left">
                    <asp:TextBox ID="txtBeginDate" runat="server" Width="240px"  
                       ></asp:TextBox>
                         <img   style="cursor:hand;" src="../../js/img/calendar.gif"
     onclick='popUpCalendar(this, txtBeginDate, dateFormat,-1,-1)' 
     alt='Select'>
                </td>
            </tr>
            <tr>
                <td>
                    &nbsp;<span lang="zh-cn">结束日期:</span>
                </td>
                <td style="text-align: left">
                    <asp:TextBox ID="txtEndDate" runat="server" Width="240px"></asp:TextBox>
                     <img   style="cursor:hand;" src="../../js/img/calendar.gif"
     onclick='popUpCalendar(this, txtEndDate, dateFormat,-1,-1)' 
     alt='Select'>
                </td>
            </tr>
            <tr>
                <td colspan="2" style="font-weight: bold; color: white; background-color: #507cd1">
                    <asp:Button ID="Btn_Submit" runat="server" Text="查询"
                        OnClick="Btn_Submit_Click" />&nbsp;<asp:Button ID="Btn_Cancel" runat="server" Text="取消" />
                </td>
            </tr>
        </table>
                    <br />
                    <asp:GridView ID="GV_TXList" runat="server" AllowPaging="True" AllowSorting="True"
                        AutoGenerateColumns="False" CellPadding="4" DataKeyNames="id" ForeColor="#333333"
                        PageSize="15" Width="100%" EmptyDataText="暂无提现申请" 
                        onpageindexchanging="GV_TXList_PageIndexChanging">
                        <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                        <RowStyle BackColor="#EFF3FB" />
                        <Columns>
                         
                            <asp:BoundField DataField="UserID" HeaderText="会员账号" />
                            <asp:BoundField DataField="username" HeaderText="会员昵称"></asp:BoundField>
                            <asp:TemplateField HeaderText="提现金额($)">                                
                                <ItemTemplate>
                                    <asp:Label ID="lblCMoney" runat="server" Text='<%# Bind("CMoney", "{0:F2}") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:BoundField DataField="CreateDate" HeaderText="申请日期" DataFormatString="{0:yyyy-MM-dd}" />
                            <asp:BoundField DataField="CurrState" HeaderText="状态" />
                            <asp:BoundField DataField="Operator" HeaderText="审核人" />
                            <asp:BoundField DataField="OperateTime" DataFormatString="{0:yyyy-MM-dd}" HeaderText="审核时间"
                                NullDisplayText=" " />
                            <asp:TemplateField HeaderText="操作">
                                <ItemTemplate>
                                    <asp:LinkButton ID="lbtnApprove" runat="server" Enabled='<%#Eval("state").ToString().Equals("0") ? true:false %>'
                                        Text='<%#Eval("state").ToString().Equals("0") ? "审核":"已审核" %>' 
                                        onclick="lbtnApprove_Click"></asp:LinkButton>
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                        <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                        <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                        <HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                        <EditRowStyle BackColor="#2461BF" />
                        <AlternatingRowStyle BackColor="White" />
                    </asp:GridView>
                </td>
            </tr>
        </table>
    </div>
      <asp:HiddenField ID="hidTXID" runat="server" />
    </form>
</body>
</html>
